package com.huluobo.high3demo.mine;

import android.app.Application;

import androidx.annotation.NonNull;
import androidx.lifecycle.MutableLiveData;

import com.huluobo.mvvm.db.eneity.UserInfo;
import com.huluobo.mvvm.viewmodel.BaseViewModel;

/**
 * Created by LC on 2023/9/22.
 */
public class MineViewModel extends BaseViewModel<MineRepo> {
    MutableLiveData<UserInfo> userInfoSuccess = new MutableLiveData<>();

    MutableLiveData<String> userInfoFailed = new MutableLiveData<>();

    public MineViewModel(@NonNull Application application) {
        super(application);
    }

    public void queryUserInfo(String username) {
        repo.queryUserInfo(username, userInfoSuccess, userInfoFailed);
    }

    @Override
    protected MineRepo createRepo() {
        return new MineRepo();
    }
}
